//
//  UUBaseTableViewCell.m
//  UUCharterSupplier
//
//  Created by ZhangAo on 22/01/2018.
//  Copyright © 2018 UUCharter. All rights reserved.
//

#import "UUBaseTableViewCell.h"

@implementation UUBaseTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        commonInitSafe(UUBaseTableViewCell);
    }
    return self;
}

- (instancetype)initWithCoder:(NSCoder *)coder {
    self = [super initWithCoder:coder];
    if (self) {
        commonInitSafe(UUBaseTableViewCell);
    }
    return self;
}

commonInitImplementationSafe(UUBaseTableViewCell) {
    UIView *bgColorView = [UIView new];
    bgColorView.backgroundColor = COMMON_CELL_SELECTED_COLOR;
    self.selectedBackgroundView = bgColorView;
    
    self.separatorInset = UIEdgeInsetsMake(0, 15, 0, 0);
}

@end
